<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/7/16
  Time: 20:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="JS/jquery-1.8.3.js"></script>
    <script src="CSS/bootstrap.min.js"></script>
    <link rel="stylesheet" href="CSS/bootstrap.css">
    <style>
        th {
            text-align: center;
        }
        tr{
            text-align: center;
        }
    </style>
</head>
<body>
<h3 style="text-align: center">我的好友</h3>

<table class="table table-hover">
    <tr>
        <th>编号</th>
        <th>好友昵称</th>
        <th>操作</th>
    </tr>
    <c:if test="${empty friendList}">
        <tr>
            <td style="color: red">${requestScope.result}</td>
        </tr>
    </c:if>
    <c:forEach items="${requestScope.friendList}" var="u" varStatus="s">
        <tr>
            <td>${u.mId}</td>
            <td>${u.fuName}</td>
            <td>
                <a>好友动态</a>
            </td>
        </tr>
    </c:forEach>

</table>

</body>
</html>
